﻿using CommunityToolkit.Maui;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MauiTurntable.ViewModel
{
    public partial class NamePopupViewModel : ObservableObject
    {
        /// <summary>
        /// 
        /// </summary>
        [ObservableProperty]
        private string name;

        public IPopupService popupService;

        public NamePopupViewModel()
        {
            
        }

        void OnCancel()
        {
        }

        [RelayCommand(CanExecute = nameof(CanSave))]
        void OnSave()
        {
        }

        bool CanSave() => string.IsNullOrWhiteSpace(Name) is false;
    }
}
